#include<stdio.h>
#include<string.h>
#include<ctype.h>

int main()
{
    char s1[50], s2[50];
    fgets(s1, 50, stdin);
    fgets(s2, 50, stdin);
    int len = strlen(s1);
    for (int i = 0; i < len && s1[i] != '\n'; i++)
    {
        char ch1 = tolower(s1[i]);
        char ch2 = tolower(s2[i]);
        if (ch1 == ch2)
            printf("+");
        else
            printf("-");
    }
    return 0;
}